{{extend './layout.html'}}

{{block 'content'}}

<hr>
	{{include './nav.html'}}

<hr>

	<hr>
	<ul>
		{{each newsData val index }}
			{{if index % 2 ===  0 }}
				<li style="background: red;"><a target="_blank" href="/news/{{val.id}}">{{index}}=={{val.id}}={{val.title}}</a></li>
			{{else}}
				<li><a target="_blank" href="/news/{{val.id}}">{{index}}=={{val.id}}={{val.title}}</a></li>

			{{/if}}
		{{/each}}
		
	</ul>
	
{{/block}}